[NTG-context] system modes

2008-07-31 Thread Alan Stone
Hi, There are *some* system modes listed in the modes manual and main manual. Are *all* system modes listed somewhere ? Alan ___ If your question is of interest to others as well, please add an entry to the Wiki

[NTG-context] Using modes

2005-04-28 Thread Matthias Weber
Hello, when using modes, the names of all used modes are printed on the first page of the document like [screen] [print] etc. What's the purpose, and how can I get rid of this? I could see this being useful if the disabled modes were stricken out. Thanks, Matthias

Re: [NTG-context] \doifmodeselse?

2009-04-02 Thread Alan Stone
On Thu, Apr 2, 2009 at 6:01 PM, Gerben Wierda gerben.wie...@rna.nl wrote: Using --mode or --modes with texexec sets up modes which can be used in the files to parse different parts. For that I use \doifmodeelse{}{}{} But combining various modes in one \doiffmodeelse would be handy. e.g

Re: [NTG-context] system modes

2008-08-01 Thread Taco Hoekwater
Alan Stone wrote: Hi, There are *some* system modes listed in the modes manual and main manual. Are *all* system modes listed somewhere ? The modes manual has all modes documented except for a really obscure one (as Hans explained). There is a small error, though: *marking should

Re: [NTG-context] modes in newtexexec

2005-12-12 Thread Hans Hagen
Johan Sandblom wrote: Hello. Doing texmfstart texexec now appears to call newtexexec. However, newtexexec does not seem to handle --mode at all. Is it coming? Should I set it up so I can call texexec directly in order to use modes? i ran into that as well, it does recognize the modes

Re: [NTG-context] \doifmodeselse?

2009-04-02 Thread Alan Stone
For your information... http://www.pragma-ade.com/general/manuals/mmodes.pdf Alan On Thu, Apr 2, 2009 at 6:28 PM, Alan Stone software.list.1e...@gmail.comwrote: On Thu, Apr 2, 2009 at 6:01 PM, Gerben Wierda gerben.wie...@rna.nlwrote: Using --mode or --modes with texexec sets up modes which

Re: [NTG-context] modes

2010-10-15 Thread Henning Hraban Ramm
Am 2010-10-14 um 15:57 schrieb Hans Hagen: (for module writers) The latest beta gives access to modes at the lua end Wikified (unmodified): http://wiki.contextgarden.net/Modes#Modes_in_LuaTeX Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http

Re: [NTG-context] Modes in Lua

2017-05-31 Thread MF
if tex.modes['specialmode'] then context('I’m special.') end   Best greetings, Massi > Hi, this should be easy: > > How can I access ConTeXt’s modes in Lua? Is it any different with > language modes (*en)? > > e.g. > > \startluacode > > if context.modes['sp

[NTG-context] modes questions

2008-09-11 Thread Alan Stone
Hi, (1) --mode=modelist (1.1) Is there a limit to the number of modes in modelist ? (1.2) Is there a way to call the modelist and submit it to conditional testing within ConTeXt ? For example, to lookup (true/false) the presence of modes containing/starting with (an) alphannumeric string(s

Re: [NTG-context] modes questions

2008-09-11 Thread Taco Hoekwater
Hans Hagen wrote: (1.2) Is there a way to call the modelist and submit it to conditional testing within ConTeXt ? For example, to lookup (true/false) the presence of modes containing/starting with (an) alphannumeric string(s) ? \doifmodeelse{somemode} { } { } etc etc etc This presumes

[NTG-context] \doifmodeselse?

2009-04-02 Thread Gerben Wierda
Using --mode or --modes with texexec sets up modes which can be used in the files to parse different parts. For that I use \doifmodeelse{}{}{} But combining various modes in one \doiffmodeelse would be handy. e.g. (pseudocode) if mode is workinprogress or test or the other way around

Re: [NTG-context] Using modes

2005-04-28 Thread Willi Egger
Hi Matthias I see there is a problem in your case. Still it is not possible to give you a meaningful answer if there is no detailed information. Could you provide a minimal example which is producing the mentioned bahviour? Willi Matthias Weber wrote: Hello, when using modes, the names of all

[NTG-context] modes with Scite

2006-07-22 Thread dwarnold45
All, I am using the Scite editor provided by one of the Context dristributions. Is there a way to include modes with one of the various compiling commands? ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context

Re: [NTG-context] Slides and notes

2003-11-03 Thread Fabrice Popineau
I use the modes mechanism (\startmode, \stopmode and friends) and I am lacking imagination as to want more. Something like : \startslide \stopslide \startnote \stopnote together with modes screen and handout that would either generate only slides or print them like

[NTG-context] new small manual

2005-02-23 Thread Hans Hagen
A small manual on modes (i need a place to discuss system modes -) http://www.pragma-ade.com/show-man-41.htm - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt

Re: [NTG-context] system modes

2008-08-01 Thread Alan Stone
Never mind, the main sections system modes do the trick. Best, Alan On Fri, Aug 1, 2008 at 11:42 AM, Alan Stone [EMAIL PROTECTED]wrote: Unless I'm mistaken, the non-documented *headertext isn't operational any more. Has it been replaced with something else ? If not, I'm misunderstanding its

Re: [NTG-context] Using modes

2005-04-28 Thread Matthias Weber
Hello Willi, I have just change a major projects to modes, so in producing a minimal example the effect takes a slightly different form: \starttext \disablemode[screen] \enablemode[print] \startmode[screen] Screen Version \stopmode[screen] \startmode[print] Print Version \stopmode[print

[NTG-context] Question on enabling/disabling modes

2018-08-27 Thread Mikael P. Sundqvist
Hi! I am writing notes for my teaching and would like to do the following with modes: * If the file is compiled with context file.tex then everything (i.e. the content in all modes) is typeset. * If the file is compiled with context --mode=test1 file.tex then only mode test1 is typeset. I do

Re: [NTG-context] Project structure and modes

2011-11-11 Thread Aditya Mahajan
as we need to push/pop modes (so there is now also \pushmode \popmode). I have a hard time imagining a situation where push/pop modes will be useful. It it just so that we can avoid a group? Aditya ___ If your

[NTG-context] Modes for configuration

2005-10-15 Thread Alan Bowen
Following the example in the ConTeXt Wiki (http:// wiki.contextgarden.net/Modes) I have defined an environment file that specifies two modes (screen, print) for the production of the same source file. This works well when the appropriate texexec commands are given at the command line

[NTG-context] Modes in Lua

2017-05-31 Thread Henning Hraban Ramm
Hi, this should be easy: How can I access ConTeXt’s modes in Lua? Is it any different with language modes (*en)? e.g. \startluacode if context.modes['specialmode'] then context('I’m special.') end \stopluacode Greetlings, Hraban --- http://www.fiee.net http://wiki.contextgarden.net GPG

Re: [NTG-context] system modes

2008-08-01 Thread Hans Hagen
Alan Stone wrote: Hi, There are *some* system modes listed in the modes manual and main manual. Are *all* system modes listed somewhere ? only the official ones -) when you uncover features in the manual that is not documented it can be - something new, official, that should be documented

Re: [NTG-context] system modes

2008-08-01 Thread Alan Stone
modes listed in the modes manual and main manual. Are *all* system modes listed somewhere ? only the official ones -) when you uncover features in the manual that is not documented it can be - something new, official, that should be documented - something secret (maybe experimental

Re: [NTG-context] modes questions

2008-09-11 Thread Alan Stone
On Thu, Sep 11, 2008 at 12:52 PM, Taco Hoekwater [EMAIL PROTECTED] wrote: Hans Hagen wrote: (1.2) Is there a way to call the modelist and submit it to conditional testing within ConTeXt ? For example, to lookup (true/false) the presence of modes containing/starting with (an) alphannumeric

Re: [NTG-context] Modes for configuration

2005-10-17 Thread Hans Hagen
Alan Bowen wrote: Following the example in the ConTeXt Wiki (http:// wiki.contextgarden.net/Modes) I have defined an environment file that specifies two modes (screen, print) for the production of the same source file. This works well when the appropriate texexec commands are given

Re: [NTG-context] A problem with modes

2012-06-26 Thread Wolfgang Schuster
Am 26.06.2012 um 22:12 schrieb Marcin Borkowski: Hello, this doesn't work for me: \definestartstop[amode][before={\startmode[a]}, after={\stopmode}] \starttext All modes. \startamode ``A'' mode. \stopamode \stoptext Can I use \startmode

Re: [NTG-context] Document structure - some questions

2005-03-13 Thread Taco Hoekwater
Hi Willi, Hi Marcin, How do the system modes (*...-modes) work exactly? I managed to make \startmode[*interaction] ... \stopmode work, but what about the others starred modes? Most of these modes are only set part of the time. For instance, the *sectionnumber mode is only sensible when it used

Re: [NTG-context] Using modes

2005-04-28 Thread Matthias Weber
it is not possible to give you a meaningful answer if there is no detailed information. Could you provide a minimal example which is producing the mentioned bahviour? Willi Matthias Weber wrote: Hello, when using modes, the names of all used modes are printed on the first page of the document like [screen

Re: [NTG-context] Modes in Lua

2017-05-31 Thread Pablo Rodriguez
On 05/31/2017 11:03 AM, MF wrote: > if tex.modes['specialmode'] then > context('I’m special.') > end > > Best greetings, > Massi > >> Hi, this should be easy: >> >> How can I access ConTeXt’s modes in Lua? Is it any different with >> language m

Re: [NTG-context] Modes in Lua

2017-05-31 Thread Hans Hagen
On 5/31/2017 4:51 PM, Pablo Rodriguez wrote: On 05/31/2017 11:03 AM, MF wrote: if tex.modes['specialmode'] then context('I’m special.') end Best greetings, Massi Hi, this should be easy: How can I access ConTeXt’s modes in Lua? Is it any different with language modes (*en

Re: [NTG-context] Question on enabling/disabling modes

2018-08-27 Thread Taco Hoekwater
> On 27 Aug 2018, at 14:14, Mikael P. Sundqvist wrote: > > Hi! > > I am writing notes for my teaching and would like to do the following with > modes: > > * If the file is compiled with context file.tex then everything (i.e. the > content in all modes)

[NTG-context] setting mode in ctx-file

2008-08-27 Thread Peter Münster
Hello, How can I set a mode in a ctx-file? I would like to pass such a file to context --ctx=file ... If further modes are passed with --mode=..., these modes should not replace the mode in the ctx-file, but should be added. Cheers, Peter -- http://pmrb.free.fr/contact

Re: [NTG-context] multiple modes

2006-08-11 Thread Hans Hagen
Taco Hoekwater wrote: David Arnold wrote: All, Is this sort of thing ok? texexec --mode=short,copyright,paging chapter1 I think so ... ah, i see, the chapter 1 is not part of the modes -) isn't that in mmodes.pdf ? must check Hans

[NTG-context] modes in newtexexec

2005-12-09 Thread Johan Sandblom
Hello. Doing texmfstart texexec now appears to call newtexexec. However, newtexexec does not seem to handle --mode at all. Is it coming? Should I set it up so I can call texexec directly in order to use modes? Regards, Johan -- Johan Sandblom N8, MRC, Karolinska sjh t +46851776108 17176

[NTG-context] A problem with modes

2012-06-26 Thread Marcin Borkowski
Hello, this doesn't work for me: \definestartstop[amode][before={\startmode[a]}, after={\stopmode}] \starttext All modes. \startamode ``A'' mode. \stopamode \stoptext Can I use \startmode with \definestartstop? Or is there a better way to do something like

[NTG-context] nested modes

2009-09-16 Thread Peter Münster
Hello, Here is a problem with nested modes: \starttext no mode \startmode[mode1] mode1a \startmode[mode2] mode2 \stopmode mode1b % this is printed, but it should not \stopmode no mode \stoptext Cheers, Peter -- Contact information: http://pmrb.free.fr/contact

Re: [NTG-context] modes questions

2008-09-11 Thread Hans Hagen
Taco Hoekwater wrote: Hans Hagen wrote: (1.2) Is there a way to call the modelist and submit it to conditional testing within ConTeXt ? For example, to lookup (true/false) the presence of modes containing/starting with (an) alphannumeric \doifinstring string(s) ? \doifmodeelse{somemode

Re: [NTG-context] modes questions

2008-09-11 Thread Alan Stone
On Thu, Sep 11, 2008 at 1:37 PM, Hans Hagen [EMAIL PROTECTED] wrote: Taco Hoekwater wrote: Hans Hagen wrote: (1.2) Is there a way to call the modelist and submit it to conditional testing within ConTeXt ? For example, to lookup (true/false) the presence of modes containing/starting

Re: [NTG-context] Does \startnotallmodes work?

2022-05-10 Thread Rik Kabel via ntg-context
/the-book-edition-iii/> Gerben, \startnotallmodes is behaving as it should. Here, it is not the case that RU and FR (all the listed modes) are set, so EN is enabled, and you actually have both FR and EN set. Try the following with context —mode=FR and make sure you understand th

Re: [NTG-context] modes questions

2008-09-17 Thread Alan Stone
On Thu, Sep 11, 2008 at 12:46 PM, Hans Hagen [EMAIL PROTECTED] wrote: Alan Stone wrote: Hi, (1) --mode=modelist (1.1) Is there a limit to the number of modes in modelist ? no, just what the console and memory permit (1.2) Is there a way to call the modelist and submit

Re: [NTG-context] modes questions

2008-09-17 Thread Hans Hagen
Alan Stone wrote: On Thu, Sep 11, 2008 at 12:46 PM, Hans Hagen [EMAIL PROTECTED] wrote: Alan Stone wrote: Hi, (1) --mode=modelist (1.1) Is there a limit to the number of modes in modelist ? no, just what the console and memory permit (1.2) Is there a way to call the modelist and submit

Re: [NTG-context] modes questions

2008-09-20 Thread Hans Hagen
Alan Stone wrote: Are such macros possible ? modes: ma, mb, ... mz values: va, vb, ... vz command: cmd parameter: p (1) instead of \doifmode{ma}{\cmd[name][va]} \doifmode{mb}{\cmd[name][vb]} \doifmode{mz}{\cmd[name][vz]} a macro which does: \doifmode{m*}{\cmd[name][v

Re: [NTG-context] Project structure and modes

2011-11-12 Thread Hans Hagen
}{NO} \stopproduct I've added it but it needs checking as we need to push/pop modes (so there is now also \pushmode \popmode). I have a hard time imagining a situation where push/pop modes will be useful. It it just so that we can avoid a group? indeed and in this case, environments and such are definitely

Re: [NTG-context] document structure (small bug)

2006-07-22 Thread Taco Hoekwater
for reading instead of rejecting everything except the current product/component. Yes, it only guards against loading the environment file twice. The name is irrelevant. In the code of core-job.tex I read: % more or less replaced by modes \setvalue{\e!start\v!localenvironment}[#1

Re: [NTG-context] A problem with modes

2012-06-26 Thread Marcin Borkowski
}] \starttext All modes. \startamode ``A'' mode. \stopamode \stoptext Can I use \startmode with \definestartstop? No you can’t. I was afraid of this... Or is there a better way to do something like this? It depends on what you want to do. You can create a buffer command

[NTG-context] Modes in MkIV minimals (bug?)

2010-10-24 Thread Matija Šuklje
Hullo, I'm working on my thesis (and it's pf_ul styling[1]) and I tried to include modes. The thing is that modes seem to be set right and work when invoked in CLI (e.g. 'context --mode=osnutek,zaslon diplomska.tex', but ConteXt seems to completely igonore lines in text such as: \enablemode

Re: [NTG-context] Modes in MkIV minimals (bug?)

2010-10-24 Thread Wolfgang Schuster
Am 24.10.2010 um 21:21 schrieb Matija Šuklje: Hullo, I'm working on my thesis (and it's pf_ul styling[1]) and I tried to include modes. The thing is that modes seem to be set right and work when invoked in CLI (e.g. 'context --mode=osnutek,zaslon diplomska.tex', but ConteXt seems

Re: [NTG-context] Passing and retrieveing a variable

2011-01-05 Thread Wolfgang Schuster
Am 05.01.2011 um 20:22 schrieb Procházka Lukáš: Hello, I'd need to pass a variable to Ctx and to retrieve it inside a compiled document - via Ctx itself and also by Lua. Something like modes; but modes allow just to check whether they are on or off. I'd need something like this: You can

[NTG-context] Document structure - some questions

2005-03-12 Thread Marcin Borkowski
do exactly front, body, back matter and appendices environments work? How do the system modes (*...-modes) work exactly? I managed to make \startmode[*interaction] ... \stopmode work, but what about the others starred modes? What are the possible parameters for the \setupoutput command? Sorry

Re: [NTG-context] Language dependency in environment-project file

2018-11-28 Thread Marco Patzer
On Wed, 28 Nov 2018 09:20:49 +0100 Hans Hagen wrote: > An alternative is to use system modes: > > \mainlanguage[nl] > > % \startmode[*en] > % \setupitemize[n] > % \stopmode > > % \startmode[*nl] > % \setupitemize[a] > % \stopmode > > %

Re: [NTG-context] Modes and conditional part of the source

2019-02-28 Thread Aditya Mahajan
On Thu, 28 Feb 2019, Procházka Lukáš Ing. wrote: Hello, I'm struggling with using modes to make a part of the text conditional. Here is my code: \def\b#1{\startmode[#1]} \def\e{\stopmode} % \enablemode[100] % For optional usage \starttext A \b{100} % Should be start of some

Re: [NTG-context] Modes and conditional part of the source

2019-02-28 Thread Hans Hagen
On 2/28/2019 11:29 AM, Procházka Lukáš Ing. wrote: Hello, I'm struggling with using modes to make a part of the text conditional. Here is my code: \def\b#1{\startmode[#1]} \def\e{\stopmode} % \enablemode[100] % For optional usage \starttext   A   \b{100} % Should be start of some

[NTG-context] Conditional formatting with *frontpart, *bodypart, *backpart modes

2021-08-12 Thread Joey McCollum via ntg-context
Hi, I was curious about the possibility of handling general formatting settings (e.g., page layout, headers and footers, page numbering, alignment, default body font assignment, etc.) conditionally for front, body, and back matter using modes. According to the wiki page at https

Re: [NTG-context] How do I write a digital book that can become a physical book without a lot of modifications?

2022-09-10 Thread Mikael Sundqvist via ntg-context
l book that doesn't have to be heavily modified in > order to become a physical book? I want almost no modification at all. I think you can use modes: https://wiki.contextgarden.net/Modes. Simply do different setups in different modes. Then choose the mode at

[NTG-context] hierarchical modes

2008-05-15 Thread Janko Hauser
everything, the group internal only the public parts and the internal ones. As far as I see, modes are not additive. What would be the best way to structure such a document and to style the different paragraphs, so that the different audiences see, who can read what? Thanks in advance, __Janko

Re: [NTG-context] Project structure and modes

2011-11-11 Thread Hans Hagen
On 11-11-2011 16:02, Wolfgang Schuster wrote: Hi Hans, can you add the systemmodes for products, components etc. in MkIV because they are missing. \startproduct test \doifmodeelse{*product}{YES}{NO} \stopproduct I've added it but it needs checking as we need to push/pop modes (so

Re: [NTG-context] modes with Scite

2006-07-24 Thread Hans Hagen
[EMAIL PROTECTED] wrote: All, I am using the Scite editor provided by one of the Context dristributions. Is there a way to include modes with one of the various compiling commands? no, but you can (1) temporary put \enablemode[...] at the to of the file (2) use a separate file where you

Re: [NTG-context] modes with Scite

2006-07-24 Thread Hans Hagen
[EMAIL PROTECTED] wrote: All, I am using the Scite editor provided by one of the Context dristributions. Is there a way to include modes with one of the various compiling commands? btw, you can make a local scite options file and add menu items (key bindings); so you can map say ctrl-F10

Re: [NTG-context] A problem with modes

2012-06-26 Thread Aditya Mahajan
On 2012-06-26, at 10:12 PM, Marcin Borkowski mb...@wmi.amu.edu.pl wrote: Hello, this doesn't work for me: \definestartstop[amode][before={\startmode[a]}, after={\stopmode}] \starttext All modes. \startamode ``A'' mode. \stopamode \stoptext Can I use

Re: [NTG-context] nested modes

2009-09-16 Thread Hans Hagen
Peter Münster wrote: Hello, Here is a problem with nested modes: \starttext no mode \startmode[mode1] mode1a \startmode[mode2] mode2 \stopmode mode1b % this is printed, but it should not \stopmode no mode \stoptext indeed, will never work, when nested use \startlocalmode

[NTG-context] Mode for footnote?

2015-06-23 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, there are many modes for various situations (http://wiki.contextgarden.net/Modes). Is there a mode to signal being inside a footnote? This would be handy for head definition: \definehead[paragraph][subsubsubject] \define\ShBlank{\doifnotmode{*footnote}{\blank}} \setuphead

Re: [NTG-context] Modes in Lua

2017-05-31 Thread Pablo Rodriguez
On 05/31/2017 04:51 PM, Pablo Rodriguez wrote: > [...] > This is the way to detect system modes, but I don’t know how to do it > for \mainlanguage (**en). It was simple (not even using tex.systemmodes): \mainlanguage[es] \starttext \en\startlua if tex.m

Re: [NTG-context] Checking for singlesided/doublesided at run-time

2020-06-24 Thread Aditya Mahajan
On Wed, 24 Jun 2020, Henning Hraban Ramm wrote: I wanted to refer to the mmodes manual, but it’s gone. Was it accidentally removed, or are modes now explained in some other manual? I didn’t find it. http://www.pragma-ade.com/general/manuals/mmodes.pdf and my tugboat article wikified

Re: [NTG-context] modes questions

2008-09-11 Thread Hans Hagen
Alan Stone wrote: Hi, (1) --mode=modelist (1.1) Is there a limit to the number of modes in modelist ? no, just what the console and memory permit (1.2) Is there a way to call the modelist and submit it to conditional testing within ConTeXt ? For example, to lookup (true/false

[NTG-context] Project structure and modes

2011-11-11 Thread Wolfgang Schuster
Hi Hans, can you add the systemmodes for products, components etc. in MkIV because they are missing. \startproduct test \doifmodeelse{*product}{YES}{NO} \stopproduct Wolfgang ___ If your question is of interest to

Re: [NTG-context] multiple modes

2006-08-10 Thread Taco Hoekwater
David Arnold wrote: All, Is this sort of thing ok? texexec --mode=short,copyright,paging chapter1 I think so ... Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context

[NTG-context] beta

2006-09-28 Thread Hans Hagen
latest upload (in 10 minutes) - static graphics with mpenvironments - fix for modes and protection Hans -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt

Re: [NTG-context] Modes for configuration

2005-10-16 Thread Willi Egger
Hi Alan, This is simle to solve: %\enablemode[screen] \enablemode[print] \envrionment yourenvironment Important is to enable the required mode before loading the environment file. - Dit you know that you can select multiple modes e.g. you have a print-mode and the document should be created

Re: [NTG-context] Modes for configuration

2005-10-17 Thread Alan Bowen
to solve: %\enablemode[screen] \enablemode[print] \envrionment yourenvironment Important is to enable the required mode before loading the environment file. - Dit you know that you can select multiple modes e.g. you have a print-mode and the document should be created for letter, A4 and A5. So

Re: [NTG-context] Modes for configuration

2005-10-17 Thread Alan Bowen
Many thanks, Hans. The idea of a pop-up menu for texexec does have a peculiar charm. Best, Alan On Oct 17, 2005, at 4:21 AM, Hans Hagen wrote: Alan Bowen wrote: Following the example in the ConTeXt Wiki (http:// wiki.contextgarden.net/Modes) I have defined an environment file

Re: [NTG-context] Typesetting products and components

2005-02-15 Thread Peter Münster
On Mon, 14 Feb 2005, Randall Skelton wrote: Is it possible to determine if texexec is being run on a product or a component and have optional processing similar to different modes? \ifx\currentproduct\empty no product defined \else the product is \currentproduct \fi Cheers, Peter -- http

Re: [NTG-context] Using modes

2005-04-28 Thread David Munger
Reminds me of this post: http://archive.contextgarden.net/message/20041101.205339.1e76d98d.html I bet that is what we all do! David Matthias Weber : Hello again, oh my, this was a stupid mistake. I added the [screen] and [print] parameters to \stopmode. No wonder that is what is being

Re: [NTG-context] Question on enabling/disabling modes

2018-08-27 Thread Henning Hraban Ramm
Am 2018-08-27 um 16:37 schrieb Mikael P. Sundqvist : > > On 27 Aug 2018, at 14:14, Mikael P. Sundqvist wrote: > > > > Hi! > > > > I am writing notes for my teaching and would like to do the following with > > modes: > > > > * If the file is com

Re: [NTG-context] Question on enabling/disabling modes

2018-08-27 Thread Mikael P. Sundqvist
On Mon, Aug 27, 2018 at 3:17 PM Taco Hoekwater wrote: > > > > On 27 Aug 2018, at 14:14, Mikael P. Sundqvist wrote: > > > > Hi! > > > > I am writing notes for my teaching and would like to do the following > with modes: > > > > * If the file is

Re: [NTG-context] Can modes be used for content control?

2021-11-17 Thread Henning Hraban Ramm via ntg-context
> Am 17.11.2021 um 04:06 schrieb ⁨Idris Samawi Hamid ادريس سماوي حامد via > ntg-context⁩ <⁨ntg-context@ntg.nl⁩>: > > Unfortunately - as pointed out on the wiki - modes cannot be nested. Why would you need that? You know about \startnotmode and that you can use lists of

Re: [NTG-context] Can modes be used for content control?

2021-11-16 Thread Aditya Mahajan via ntg-context
On Tue, 16 Nov 2021, Idris Samawi Hamid ادريس سماوي حامد via ntg-context wrote: > Dear gang, > > For creating/authoring content in ConTeXt: Can modes or the like be used > for content control? For example, someone wants to write at least two > versions of a book managed fro

Re: [NTG-context] Can modes be used for content control?

2021-11-17 Thread Hans Hagen via ntg-context
حامد via ntg-context wrote: Dear gang, For creating/authoring content in ConTeXt: Can modes or the like be used for content control? For example, someone wants to write at least two versions of a book managed from a single file. So, e.g., we may have a) abridged content b) unabridged content

Re: [NTG-context] Can modes be used for content control?

2021-11-17 Thread Aditya Mahajan via ntg-context
> > wrote: > > > > > Dear gang, > > > > > > For creating/authoring content in ConTeXt: Can modes or the like be used > > > for content control? For example, someone wants to write at least two > > > versions of a book managed from a sin

Re: [NTG-context] Does \startnotallmodes work?

2022-05-11 Thread Gerben Wierda via ntg-context
f Enterprise Architecture >> <https://ea.rna.nl/the-book/> >> Book: Mastering ArchiMate <https://ea.rna.nl/the-book-edition-iii/> >> > Gerben, > > \startnotallmodes is behaving as it should. Here, it is not the case that RU > and FR (all the listed m

Re: [NTG-context] new features

2016-05-22 Thread Hans Hagen
efined modes (that is, set with: \enablemode, \disablemode or \definemode) can be tested about twice as fast as undefined modes which can make a small difference I do not understand this fully: - if the mode is undefined, how can "define an undefined mode" for a mode that has already be

[NTG-context] selectively turn off captions

2007-11-29 Thread Roger Mason
Hello, I'm making progress in using modes - thanks again for the help so far that was given in the switching to Context thread. I have followed Thomas Schmitz' practex article and have set up modes for presentation and manuscript. I am using external figures on most of the slides

Re: [NTG-context] selectively turn off captions

2007-11-29 Thread Wolfgang Schuster
2007/11/29, Roger Mason [EMAIL PROTECTED]: Hello, I'm making progress in using modes - thanks again for the help so far that was given in the switching to Context thread. I have followed Thomas Schmitz' practex article and have set up modes for presentation and manuscript. I am using

Re: [NTG-context] hierarchical modes

2008-05-15 Thread Hans Hagen
group should see everything, the group internal only the public parts and the internal ones. As far as I see, modes are not additive. What would be the best way to structure such a document and to style the different paragraphs, so that the different audiences see, who can read what

Re: [NTG-context] setting mode in ctx-file

2008-08-28 Thread Hans Hagen
Peter Münster wrote: Hello, How can I set a mode in a ctx-file? I would like to pass such a file to context --ctx=file ... If further modes are passed with --mode=..., these modes should not replace the mode in the ctx-file, but should be added. ?xml version='1.0' standalone='yes

Re: [NTG-context] modes questions

2008-09-20 Thread Alan Stone
Are such macros possible ? modes: ma, mb, ... mz values: va, vb, ... vz command: cmd parameter: p (1) instead of \doifmode{ma}{\cmd[name][va]} \doifmode{mb}{\cmd[name][vb]} ... \doifmode{mz}{\cmd[name][vz]} a macro which does: \doifmode{m*}{\cmd[name][v*]} (2) instead of \doifmode{ma}{\cmd[p

Re: [NTG-context] modes questions

2008-09-29 Thread Alan Stone
On Thu, Sep 11, 2008 at 12:46 PM, Hans Hagen [EMAIL PROTECTED] wrote: Alan Stone wrote: (2.2) How does ConTeXt handle a modefile ? Are the modes parsed into a modelist ( re: question 1.2 ) ? best use ctx files instead, like in == somefile.ctx === ?xml version='1.0' standalone='yes

Re: [NTG-context] modes questions

2008-09-29 Thread Hans Hagen
Alan Stone wrote: On Thu, Sep 11, 2008 at 12:46 PM, Hans Hagen [EMAIL PROTECTED] wrote: Alan Stone wrote: (2.2) How does ConTeXt handle a modefile ? Are the modes parsed into a modelist ( re: question 1.2 ) ? best use ctx files instead, like in == somefile.ctx === ?xml version='1.0

[NTG-context] Custom parameters/options for t-vim

2011-08-30 Thread Andreas Schneider
Hi, I worked with t-vim a bit more and encountered a small problem with the way vim handles syntax definitions. Some of them have several modes that get activated by setting a variable first. For example the syntax sh (shell scripts) can be enhanced for bash, ksh, etc. Example: let

Re: [NTG-context] modes with Scite

2006-07-25 Thread dwarnold45
dristributions. Is there a way to include modes with one of the various compiling commands? no, but you can (1) temporary put \enablemode[...] at the to of the file (2) use a separate file where you set the mode, and load the file Hans

Re: [NTG-context] modes with Scite

2006-07-25 Thread Hans Hagen
) Hans Hagen [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: All, I am using the Scite editor provided by one of the Context dristributions. Is there a way to include modes with one of the various compiling commands? no, but you can (1) temporary put

Re: [NTG-context] texexec --mode=xxx --mode=yyy

2007-01-16 Thread Peter Münster
- options All right. I've just seen, that texexec --modes=xxx --mode=yyy works as I want. Can I rely on it for the future? Imagine a command (an alias) my-texexec = texexec --mode=xxx that is used for example like this: my-texexec --mode=yyy file Then, the mode=xxx gets overwritten

Re: [NTG-context] Problem installing ConTeXt jedit syntax

2005-08-31 Thread Elliot Clifton
Hans, Sorry about taking a long time to get back to you. I checked the syntax of the ConTeXt mode files. They seem to be consistent with the syntax in modes that are known to work. The delegate syntax doesn't seem to have changed. I don't recieve XML validation errors for any other parts

Re: [NTG-context] mode dependend character handling

2006-01-14 Thread Mojca Miklavec
). mode processing is based on modes that are in effect at the execution time of the \startmode macro, not the typeset time. This would work: \enablemode[swiss] \startencoding[ec] \startmode[swiss] \definecharacter ssharp {ss} \stopmode \stopencoding

Re: [NTG-context] A problem with modes

2012-06-26 Thread Wolfgang Schuster
modes. \startamode “A” mode. \stopamode \stoptext Thanks, it worked. One question: is there any difference between \def\starta{...} \def\stopa{...} and \definestartstop[a][before={...},after={…}] Yes because in my definition for \startamode I start a buffer which reads

[NTG-context] Alternative width of figures in different documents (problem with modes?)

2013-02-05 Thread Jaroslav Hajtmar
Hello ConTeXist. I would like use modes alternative to change of image dimensions in different documents (presentation or print version). Compilation in ConTeXt TeXLive 2012 version will compile without error, but without visual effect. Compilation with the standalone version fails. What

[NTG-context] writing additional compilation info to the log (or other) file

2008-11-21 Thread Alan STONE
Hi, How do you write the TeXExec | processing document ... TeXExec | loading ctx file ... TeXExec | using flags texengine=... interface=... result=... TeXExec | using modes ... TeXExec | outputfile ... TeXExec | tex processing method: ... TeXExec | TeX run ... TeXExec | writing option file

Re: [NTG-context] How to capture a typeset page into a box instead of shipping it out

2009-02-01 Thread Roger Mason
Hello, Kevin D. Robbins krobb...@alumni.princeton.edu writes: Thanks for the suggestions Wolfgang and Luigi. I've now got several good options to research. Kevin I use 3 modes for teaching: manuscript -- notes that go on-line for students to download presentation -- pictures

Re: [NTG-context] New to TeX, ConTeXt - How to conditionally include document sections?

2009-07-24 Thread Stephen Gadsby
From: Hans Hagen \doifelse{stringa}{stringb}{...}{...} From: Aditya Mahajan For what you want, modes should be sufficient. If for something else you really want to do string comparisons, ConTeXt provides a bunch of \doifelse commands http://wiki.contextgarden.net/System_Macros

[NTG-context] modes

2010-10-14 Thread Hans Hagen
Hi, (for module writers) The latest beta gives access to modes at the lua end \starttext \enablemode[test] \enablemode[] \doifallmodes{test,xxx}{NO} \doifallmodes{test,}{YES} \doifmode{test}{YES} \doifnotmode{xxx}{YES} \startluacode tex.sprint(tex.modes['x']and YES or NOP

Re: [NTG-context] \ReadFile in MkII vs MkIV

2010-10-17 Thread Hans Hagen
On 17-10-2010 8:54, Aditya Mahajan wrote: Maybe Hans forgot it for mkii but it doesn’t matter whether mkii/mkiv is a normal mode or a system mode. IIRC, system modes cannot be reset using \(enable|disable)mode. there is nothing special about system modes: they just have a * in front so you

  1   2   3   4   5   6   7   >